#include <iostream>
#include "memorypool.hpp"
//侵入式内存池
class Test
{
public:
    MEMORYPOOL(Test, 1024);
public:
    int a;
    int b;
    int c;
};

int main()
{
    Test *t = new Test;
    t->a = 22;
    t->b = 1;
    t->c = 123;
    std::cout<<t->a<<" "<<t->b<<" "<<t->c<<std::endl;

    delete t;
    return 0;
}
